package com.eva.androidlibrary.api.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author eva
 * @date 16/6/13
 */
public class ProductImage extends BaseBean implements Parcelable {

    private int id;
    private String url;
    private String product;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.url);
        dest.writeString(this.product);
    }

    public ProductImage() {
    }

    protected ProductImage(Parcel in) {
        this.id = in.readInt();
        this.url = in.readString();
        this.product = in.readString();
    }

    public static final Parcelable.Creator<ProductImage> CREATOR = new Parcelable.Creator<ProductImage>() {
        public ProductImage createFromParcel(Parcel source) {
            return new ProductImage(source);
        }

        public ProductImage[] newArray(int size) {
            return new ProductImage[size];
        }
    };
}
